package com.android.common.mvp.model;

import com.android.common.R;
import com.android.common.base.BaseBean;
import com.android.common.constant.Constant;

public class CodeMsgBean extends BaseBean {
    public int code;
    public String msg;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return msg;
    }

    public void setMessage(String message) {
        this.msg = message;
    }

    public static CodeMsgBean success(){
        CodeMsgBean bean = new CodeMsgBean();
        bean.setCode(Constant.SUCCESS);
        bean.setMessage(Constant.GLOBAL_APPLICATION.getString(R.string.success));
        return bean;
    }

    public static CodeMsgBean fail(){
        CodeMsgBean bean = new CodeMsgBean();
        bean.setCode(Constant.ERROR);
        bean.setMessage(Constant.GLOBAL_APPLICATION.getString(R.string.success));
        return bean;
    }

}
